/**
 * @Date 2025/1/6 10:12
 * @Created by 衡盛永
 */

package org.example.deploy.security;

//import org.springframework.security.core.AuthenticationException;
//import org.springframework.security.web.AuthenticationEntryPoint;

public class MyEntryPoint
//        implements AuthenticationEntryPoint
{
//    @Override
//    public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) throws IOException {
//        response.setContentType("application/json;charset=utf-8");
//        PrintWriter out = response.getWriter();
//        // 直接提示前端认证错误
//        out.write("认证错误");
//        out.flush();
//        out.close();
//    }
}